package com.ktvme.taskInstance;


import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class TaskDefinition {

  private Long code;

  private Integer version;

  /** the task node's name */
  private String name;

  /** the task node's description */
  private String description;


  private String taskType;
//为了避免增加复杂度，更改炜String类型
  private String taskParams;

  /** NO:the node will not execute;YES:the node will execute,default is YES */
  private String flag;

  private String taskPriority;

  private String workerGroup;

  private String failRetryTimes;

  private String failRetryInterval;

  private String timeoutFlag;

  private String timeoutNotifyStrategy;

  private Integer timeout = 0;

  private String delayTime = "0";

  private Integer environmentCode = -1;

  private String taskExecuteType;

  private Integer cpuQuota = -1;

  private Long memoryMax = -1L;

  /** YES, NO * */
  private String isCache = "NO";

  /**
   * must rewrite,then {@link RequestHttpEntity#bodyToMap()} can transfer object to json string
   *
   * @return object json string
   */
}
